import React from 'react';
import Modal from 'lib/components/Modal.jsx';

class UpgradeModal extends Modal {
  renderHeader() {
    return <h4>提醒消息</h4>;
  }

  renderBody() {
    return (
      <div className="upgrade-message" style={{padding: '30px 0'}}>
        该功能仅限付费用户使用，您可以选择高级功能预览所有付费功能，或者进行用户升级享受更多服务。
      </div>
    );
  }

  renderFooter() {
    return (
      <div className="pull-right">
        <a href="advanced" className="btn-green" onClick={ this.close } style={{marginRight: 15}}>高级功能</a>
        <a href="http://www.oneapm.com/mi/price.html" target="_blank" className="btn-green">用户升级</a>
      </div>
    );
  }
}

UpgradeModal.defaultProps = {
  className: 'upgrade-modal',
  closeable: false,
  draggable: false
};

export default UpgradeModal;
